package com.lottery.material.enums;

/**
 * 银行CODE  银行名称对应字典表
 */
public enum BankCodeEnum {
		
	ICBC("中国工商银行","ICBC"),
	ABC("中国农业银行","ABC"),
	BOC("中国银行","BOC"),
	CCB("中国建设银行","CCB"),
	CNCB("中信银行","CNCB"),
	CEB("中国光大银行","CEB"),
	HXB("华夏银行","HXB"),
	CMBC("中国民生银行","CMBC"),
	DESZ("深圳发展银行","DESZ"),
	CHENGDEBANK("承德银行","CHENGDEBANK"),
	ZJKCCB("张家口市商业银行","ZJKCCB"),
	CZCCB("沧州银行","CZCCB"),
	DYCCB("德阳银行","DYCCB"),
	_5200961("绵阳市商业银行","5200961"),
	WHCB("汉口银行","WHCB"),
	KMCB("富滇银行","KMCB"),
	KSRCB("昆山农村商业银行","KSRCB"),
	HCCB("杭州银行","HCCB"),
	CZSB("浙商银行","CZSB"),
	CZCB("浙江稠州商业银行","CZCB"),
	CQRCB("重庆农村商业银行","CQRCB"),
	SCCB("河北银行股份有限公司","SCCB"),
	HDCB("邯郸市商业银行","HDCB"),
	ZJTLCB("浙江泰隆商业银行","ZJTLCB"),
	BOWZ("温州银行","BOWZ"),
	BEEB("鄞州银行","BEEB"),
	BOIMC("内蒙古银行","BOIMC"),
	JSNX("江苏省农村信用社联合社","JSNX"),
	CSRCBANK("常熟农村商业银行","CSRCBANK"),
	JSBK("江苏银行股份有限公司","JSBK"),
	NJCB("南京银行","NJCB"),
	GZCCB("赣州银行","GZCCB"),
	HSCB("徽商银行","HSCB"),
	BSB("包商银行股份有限公司","BSB"),
	ORDOSBANK("鄂尔多斯银行","ORDOSBANK"),
	JLBANK("吉林银行","JLBANK"),
	GX966888("广西农村信用社（合作银行）","GX966888"),
	LZCCB("柳州银行","LZCCB"),
	TZBANK("台州银行","TZBANK"),
	MINTAIBANK("浙江民泰商业银行","MINTAIBANK"),
	SXCCB("绍兴银行","SXCCB"),
	EGBANK("恒丰银行","EGBANK"),
	DZBCHINA("德州银行","DZBCHINA"),
	COMM("交通银行","COMM"),
	FJNX("福建省农村信用社","FJNX"),
	SQBANK("商丘市商业银行","SQBANK"),
	_96033("贵阳银行","96033"),
	JSHBANK("晋商银行网上银行","JSHBANK"),
	YNRCC("云南省农村信用社","YNRCC"),
	LZBANK("兰州银行股份有限公司","LZBANK"),
	YCCCB("宁夏银行","YCCCB"),
	BANKQH("青海银行","BANKQH"),
	LJ_BANK("龙江银行","LJ-BANK"),
	HRBCB("哈尔滨银行结算中心","HRBCB"),
	ZZBANK("郑州银行","ZZBANK"),
	BANKKF("开封市商业银行","BANKKF"),
	BANKOFLUOYANG("洛阳银行","BANKOFLUOYANG"),
	DRCBANK("东莞农村商业银行","DRCBANK"),
	PSBC("中国邮政储蓄银行","PSBC"),
	KEB_CO_KR("外换银行（中国）有限公司","KEB.CO.KR"),
	CMB("招商银行","CMB"),
	CIB("兴业银行","CIB"),
	BOB("北京银行","BOB"),
	BANK_OF_TIANJIN("天津银行","BANK-OF-TIANJIN"),
	GZCB("广州银行","GZCB"),
	PINGAN("平安银行","PINGAN"),
	DGCB("东莞银行","DGCB"),
	GRCBANK("广州农村商业银行","GRCBANK"),
	SDEBANK("顺德农村商业银行","SDEBANK"),
	TRCBANK("天津农商银行","TRCBANK"),
	BOHC("渤海银行","BOHC"),
	BJRCB("北京农村商业银行","BJRCB"),
	SZRCB("深圳农商行","SZRCB"),
	SHINHANCHINA("新韩银行中国","SHINHANCHINA"),
	HANABANK("韩亚银行","HANABANK"),
	FJHXBANK("福建海峡银行","FJHXBANK"),
	SRCB("上海农村商业银行","SRCB"),
	GDB("广发银行股份有限公司","GDB"),
	JINZHOUBANK("锦州银行","JINZHOUBANK"),
	DLCB("大连银行","DLCB"),
	BANKOFAS("鞍山市商业银行","BANKOFAS"),
	BANKOFHLD("葫芦岛银行","BANKOFHLD"),
	QDCCB("青岛银行","QDCCB"),
	QSBANK("齐商银行","QSBANK"),
	YANTAIBANK("烟台银行","YANTAIBANK"),
	JN_BANK("济宁银行","JN-BANK"),
	TACCB("泰安市商业银行","TACCB"),
	LSBCHINA("临商银行","LSBCHINA"),
	DYCB("东营市商业银行","DYCB"),
	WHCCB("威海市商业银行","WHCCB"),
	RCCB("日照银行","RCCB"),
	LSBANKCHINA("莱商银行","LSBANKCHINA"),
	AHRCU("安徽省农村信用社联合社","AHRCU"),
	CSCB("长沙银行","CSCB"),
	NCCBANK("南昌银行","NCCBANK"),
	SRBANK("上饶银行","SRBANK"),
	BANKOFBBG("广西北部湾银行","BANKOFBBG"),
	BOSH("上海银行","BOSH"),
	SPDB("上海浦东发展银行","SPDB"),
	SUZHOUBANK("苏州银行","SUZHOUBANK"),
	ZJRB("张家港农村商业银行","ZJRB"),
	NBCB("宁波银行","NBCB"),
	HZCCB("湖州银行","HZCCB"),
	XMCCB("厦门银行","XMCCB"),
	BANKYELLOWRIVER("黄河农村商业银行",".BANKYELLOWRIVER"),
	HAINANBANK("海南省农村信用社","HAINANBANK"),
	ZGXH("湖北农信","ZGXH"),
	KLB("昆仑银行","KLB"),
	JCCBANK("晋城市商业银行","JCCBANK"),
	UQCB("乌鲁木齐市商业银行","UQCB"),
	XTBANK("邢台银行","XTBANK"),
	BANKOFNANYANG("南阳市商业银行","BANKOFNANYANG"),
	CSCSE("阜新银行结算中心","CSCSE"),
	LUOHEBANK("漯河市商业银行","LUOHEBANK"),
	PZHCCB("攀枝花市商业银行","PZHCCB"),
	CQCBANK("重庆银行股份有限公司","CQCBANK"),
	GDNY("南粤银行","GDNY"),
	ALIPAY("支付宝","alipay"),
	WEIXIN("微信","weixin"),
	CR("华润银行","CR");

	private BankCodeEnum(String bankName, String bankCode) {
		this.bankName = bankName;
		this.bankCode = bankCode;
	}

	private String bankCode; // 银行代码
	private String bankName;// 银行名称

	public String getBankCode() {
		return bankCode;
	}

	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	} 

	//银行名称获取银行编码
    public static String getCodeByBankName(String bankName) {
        for (BankCodeEnum bank : BankCodeEnum.values()) {
            if (bank.getBankName().equals(bankName.trim())) {
                return bank.getBankCode();
            }
        }
        return null;
    }
    
    
    //银行编码获取银行名称
    public static String getNameByBankCode(String bankCode) {
        for (BankCodeEnum bank : BankCodeEnum.values()) {
        	if (bank.getBankCode().equals(bankCode.trim())) {
                return bank.getBankName();
            }
        }
        return null;
    }
   

}
